

#ifndef TRENDCHART_CFILTERPROXYMODEL_H
#define TRENDCHART_CFILTERPROXYMODEL_H

#include <QtCore>
#include <QtWidgets>
class CFilterProxyModel : public QSortFilterProxyModel
{
	Q_OBJECT
public:
    void SetStartTime(int val_s);
    void SetInterval(int val);
protected:
    bool filterAcceptsColumn(int source_column, const QModelIndex &source_parent) const override;
private:
    int interval = 1 * 60;  //1min
    int start_s = 1 * 60;
};


#endif //TRENDCHART_CFILTERPROXYMODEL_H
